package com.chat.common.common.event;

import com.chat.common.chat.domain.entity.GroupMember;
import com.chat.common.chat.domain.entity.RoomGroup;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;
import java.util.List;

@Getter
public class GroupMemberAddEvent extends ApplicationEvent {

    private final List<GroupMember> groupMembers;
    private final RoomGroup roomGroup;
    private final Long inviteUid;

    /**
     *
     * @param source
     * @param groupMembers 群成员信息
     * @param roomGroup 群组信息
     * @param inviteUid 被通知人
     */
    public GroupMemberAddEvent(Object source, List<GroupMember> groupMembers, RoomGroup roomGroup, Long inviteUid) {
        super(source);
        this.groupMembers = groupMembers;
        this.roomGroup = roomGroup;
        this.inviteUid = inviteUid;
    }
}
